﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: DeliverTypeEntity.cs
// 修改时间：2020-9-8 10:40:02
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：DeliverType 的实体类.
	/// </summary>
	[Table("DeliverType")]
	public partial class DeliverTypeEntity
	{
		#region Properties
		private int? _typeID = 0;
		/// <summary>
		/// 送货方式ID(主键)
		/// </summary>
		[Column("TypeID",TypeName="int")]
		[Key]
		public int? TypeID
		{
			get {return _typeID;}
			set {_typeID = value;}
		}
		
		private System.String _typeName = string.Empty;
		/// <summary>
		/// 送货方式名称
		/// </summary>
		[Column("TypeName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TypeName
		{
			get {return _typeName;}
			set {_typeName = value;}
		}
		
		private System.String _intro = string.Empty;
		/// <summary>
		/// 送货方式简介
		/// </summary>
		[Column("Intro",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Intro
		{
			get {return _intro;}
			set {_intro = value;}
		}
		
		private int? _chargeType = 0;
		/// <summary>
		/// 运费类型 0为免费； 1为按重量计算运费； 2为按订单金额的百分比
		/// </summary>
		[Column("ChargeType",TypeName="int")]
		public int? ChargeType
		{
			get {return _chargeType;}
			set {_chargeType = value;}
		}
		
		private System.Boolean _isDefault = false;
		/// <summary>
		/// 是否默认
		/// </summary>
		[Column("IsDefault",TypeName="bit")]
		public System.Boolean IsDefault
		{
			get {return _isDefault;}
			set {_isDefault = value;}
		}
		
		private System.Boolean _isDisabled = false;
		/// <summary>
		/// 是否禁用
		/// </summary>
		[Column("IsDisabled",TypeName="bit")]
		public System.Boolean IsDisabled
		{
			get {return _isDisabled;}
			set {_isDisabled = value;}
		}
		
		private int? _orderSort = 0;
		/// <summary>
		/// 排序ID
		/// </summary>
		[Column("OrderSort",TypeName="int")]
		public int? OrderSort
		{
			get {return _orderSort;}
			set {_orderSort = value;}
		}
		
		private int? _releaseType = 0;
		/// <summary>
		/// 运费优惠方式， 0 为不优惠；　1 为优惠
		/// </summary>
		[Column("ReleaseType",TypeName="int")]
		public int? ReleaseType
		{
			get {return _releaseType;}
			set {_releaseType = value;}
		}
		
		private decimal? _minMoney1 = 0;
		/// <summary>
		/// 优惠要求达到的订单总金额1
		/// </summary>
		[Column("MinMoney1",TypeName="money")]
		public decimal? MinMoney1
		{
			get {return _minMoney1;}
			set {_minMoney1 = value;}
		}
		
		private decimal? _releaseCharge = 0;
		/// <summary>
		/// 达到总金额1时免除的运费数
		/// </summary>
		[Column("ReleaseCharge",TypeName="money")]
		public decimal? ReleaseCharge
		{
			get {return _releaseCharge;}
			set {_releaseCharge = value;}
		}
		
		private decimal? _minmoney2 = 0;
		/// <summary>
		/// 优惠要求达到的 订单总金额2
		/// </summary>
		[Column("Minmoney2",TypeName="money")]
		public decimal? Minmoney2
		{
			get {return _minmoney2;}
			set {_minmoney2 = value;}
		}
		
		private decimal? _maxCharge = 0;
		/// <summary>
		/// 运费总额上限条件数目
		/// </summary>
		[Column("MaxCharge",TypeName="money")]
		public decimal? MaxCharge
		{
			get {return _maxCharge;}
			set {_maxCharge = value;}
		}
		
		private decimal? _minMoney3 = 0;
		/// <summary>
		/// 优惠要求达到的 订单总金额3
		/// </summary>
		[Column("MinMoney3",TypeName="money")]
		public decimal? MinMoney3
		{
			get {return _minMoney3;}
			set {_minMoney3 = value;}
		}
		
		private decimal? _charge_Min = 0;
		/// <summary>
		/// 运费类型 = 为按订单金额的百分比 —— 基本运费
		/// </summary>
		[Column("Charge_Min",TypeName="money")]
		public decimal? Charge_Min
		{
			get {return _charge_Min;}
			set {_charge_Min = value;}
		}
		
		private decimal? _charge_Max = 0;
		/// <summary>
		/// 运费类型 = 为按订单金额的百分比 ——最高运费
		/// </summary>
		[Column("Charge_Max",TypeName="money")]
		public decimal? Charge_Max
		{
			get {return _charge_Max;}
			set {_charge_Max = value;}
		}
		
		private Int16? _charge_Percent = 0;
		/// <summary>
		/// 运费类型 = 为按订单金额的百分比 ——百分比率
		/// </summary>
		[Column("Charge_Percent",TypeName="smallint")]
		public Int16? Charge_Percent
		{
			get {return _charge_Percent;}
			set {_charge_Percent = value;}
		}
		
		private int? _includeTax = 0;
		/// <summary>
		/// 是否含税
		/// </summary>
		[Column("IncludeTax",TypeName="int")]
		public int? IncludeTax
		{
			get {return _includeTax;}
			set {_includeTax = value;}
		}
		
		private double? _taxRate = 0.0f;
		/// <summary>
		/// 税率
		/// </summary>
		[Column("TaxRate",TypeName="float")]
		public double? TaxRate
		{
			get {return _taxRate;}
			set {_taxRate = value;}
		}
		
		private int? _storeID = 0;
		/// <summary>
		/// 店铺ID
		/// </summary>
		[Column("StoreID",TypeName="int")]
		public int? StoreID
		{
			get {return _storeID;}
			set {_storeID = value;}
		}
		
		#endregion
	}
}
